The format() method is a one-line wrapper around execute(), which
is the real method being tested here. Given the class doesn't
contain any other methods, increase the scope to the whole class.
Change-Id: I8b2c7736c6708c0915a9ce15fef0dc85c63621ea
*/
class InstallDocFormatter {
- static function format( $text ) {
+ public static function format( $text ) {
$obj = new self( $text );
return $obj->execute();
<?php
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
class InstallDocFormatterTest extends MediaWikiTestCase {
/**
- * @covers InstallDocFormatter::format
+ * @covers InstallDocFormatter
* @dataProvider provideDocFormattingTests
*/
public function testFormat( $expected, $unformattedText, $message = '' ) {